package com.taobao.snowsnow.hibernate.pojo;

import java.util.ArrayList;
import java.util.List;

/**
 * <b>小类</b>
 * @author tux
 *
 */
public class Type implements java.io.Serializable {

	private static final long serialVersionUID = -149367191898095721L;
	private Integer id;
	private Category category;
	private String name;
	private String descs;
	
	private List<Ribbon> ribbons = new ArrayList<Ribbon>();
	private List<MaterialCollect> materialcollects = new ArrayList<MaterialCollect>();

	public Type() {
	}

	public Type(Category category, String name) {
		this.category = category;
		this.name = name;
	}
	
	public Type(Category category, String name, String descs) {
		this.category = category;
		this.name = name;
		this.descs = descs;
	}

	@Override
	public String toString() {
		return "Type [id=" + id + ", category=" + category.getName() + ", name=" + name
				+ ", descs=" + descs + "]";
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Category getCategory() {
		return this.category;
	}

	public void setCategory(Category category) {
		this.category = category;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescs() {
		return this.descs;
	}

	public void setDescs(String descs) {
		this.descs = descs;
	}

	public List<Ribbon> getRibbons() {
		return ribbons;
	}

	public void setRibbons(List<Ribbon> ribbons) {
		this.ribbons = ribbons;
	}

	public List<MaterialCollect> getMaterialcollects() {
		return materialcollects;
	}

	public void setMaterialcollects(List<MaterialCollect> materialcollects) {
		this.materialcollects = materialcollects;
	}
}